home *** CD-ROM | disk | FTP | other *** search
- Path: news.lpr.carel.fi!usenet
- From: Ari Lukumies <aril@cmt.lpr.mail.carel.fi>
- Newsgroups: comp.lang.c
- Subject: Re: borlandc delay function
- Date: Mon, 19 Feb 1996 15:24:55 +0200
- Organization: Carelcomp Forest
- Message-ID: <31287A27.1DB8@cmt.lpr.mail.carel.fi>
- References: <4g08jr$127@tornix.tornado.be>
- NNTP-Posting-Host: renoir.cclahti.carel.fi
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b6a (WinNT; I)
-
- Ulrik Van Schepdael wrote:
- >
- > Hi,
- >
- > could someone please explain me how the borlandc delay function works ?
- > what kind of hardware it uses and how it can be infected...
- >
- > had some strange experiences with it, delays all going to zero...
- >
- > CIAO
- > Ulrik
-
- I think it's using the BIOS interrupt (some INT 15hex service, don't remember which
- one, but check out the Ralph Brown's interrupt list) and as such can be infected by
- various device drivers, TSRs etc. The BIOS interrupt, if I recall, uses the RTC to
- invoke it using an HW IRQ after specified period of time, but if there's another
- higher IRQ at the same time, this IRQ may get lost during the next clock update or
- when someone resets the interrupt controller. Also, some systems (usually the older
- ones) do not support this BIOS service.
-
- Later,
- AriL
- --
- All my opinions are mine and mine alone.
-